Type Definitions

The following type definitions are available globally.

  • A parameterless block for defining a callback to be received once the surface has been bound or attached.

    Declaration

    Objective-C

    typedef void (^LCOnSuccessHandler)(void)

    Swift

    typealias LCOnSuccessHandler = () -> Void
  • A block for defining a callback to received if binding or attaching fails.

    Declaration

    Objective-C

    typedef void (^LCOnFailHandler)(NSString *)

    Swift

    typealias LCOnFailHandler = (String?) -> Void

    Parameters

    errorMessage

    The error message to send back to the client.